package com.bf.electroplating.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 镀槽信息表
 * </p>
 *
 * @author gzd
 * @since 2025-09-25
 */
@Getter
@Setter
@TableName("electroplating_tank")
@Schema( description = "镀槽信息表")
public class ElectroplatingTank implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema( description ="主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema( description ="镀槽编号")
    @TableField("tank_code")
    private String tankCode;

    @Schema( description ="镀槽名称")
    @TableField("tank_name")
    private String tankName;

    @Schema( description ="企业ID")
    @TableField("enterprise_id")
    private String enterpriseId;

    @Schema( description ="企业名称")
    @TableField("enterprise_name")
    private String enterpriseName;

    @Schema( description ="车间ID")
    @TableField("workshop_id")
    private String workshopId;

    @Schema( description ="车间编号")
    @TableField("workshop_code")
    private String workshopCode;

    @Schema( description ="车间名称")
    @TableField("workshop_name")
    private String workshopName;

    @Schema( description ="环评数据-长(M)")
    @TableField("eia_length")
    private BigDecimal eiaLength;

    private String parkId;

    @Schema( description ="环评数据-宽(M)")
    @TableField("eia_width")
    private BigDecimal eiaWidth;

    @Schema( description ="环评数据-高(M)")
    @TableField("eia_height")
    private BigDecimal eiaHeight;

    @Schema( description ="环评数据-数量(个)")
    @TableField("eia_quantity")
    private Integer eiaQuantity;

    @Schema( description ="环评数据-容积(M³)")
    @TableField("eia_volume")
    private BigDecimal eiaVolume;

    @Schema( description ="实测数据-长(M)")
    @TableField("actual_length")
    private BigDecimal actualLength;

    @Schema( description ="实测数据-宽(M)")
    @TableField("actual_width")
    private BigDecimal actualWidth;

    @Schema( description ="实测数据-高(M)")
    @TableField("actual_height")
    private BigDecimal actualHeight;

    @Schema( description ="实测数据-数量(个)")
    @TableField("actual_quantity")
    private Integer actualQuantity;

    @Schema( description ="实测数据-容积(M³)")
    @TableField("actual_volume")
    private BigDecimal actualVolume;

    @Schema( description ="状态：1-正常，0-停用")
    @TableField("status")
    private String status;

    @TableField (fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;
}
